package sfy.md.structure.theflyweight;

public class Woman implements FlyWeightManager {

    String name ;
    StoreManager storeManager = new Store();

    @Override
    public void addOne() {

        this.setName("女人");
         storeManager.setOne(this);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public StoreManager getStore() {
        return storeManager;
    }
}
